import { Request, RequestForExportFile, SupplierRequest } from '@/plugins/supplier-request'

// 供应商管理 - 供应商资质管理 - 列表查询
export const querySupplierQualificationListService = (data) => {
  return Request('/supplier-qualifications/pageSupplierQualification', 'post', data)
}
// 供应商管理 - 供应商资质管理 - 批量下载资质
export const downloadSupplierQualificationService = (data) => {
  return RequestForExportFile('/annex/download-zip', 'post', data)
}
// 供应商管理 - 供应商资质管理 - 查看附件
export const previewSupplierQualificationService = data => Request('/annex/getPreviewUrl', 'get', data);

// 导出
export const exportSupplierQualificationService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-supplier-qualification',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});
